﻿using Mes.Domain.BoundedContext.EntityBase;

namespace Mes.Domain.BoundedContext.Entities.Operations
{
    public class OperEntRoute : NoIdEntityBase
    {
        public OperEntRoute() { }

        public OperEntRoute(string processId, string operId, int entId, string inputOperId, int inputEntId, double inputPercent, string? lastEditComment, DateTime lastEditAt)
        {
            Process_Id = processId;
            Oper_Id = operId;
            Ent_Id = entId;
            Input_Oper_Id = inputOperId;
            Input_Ent_Id = inputEntId;
            Input_Percent = inputPercent;
            Last_Edit_Comment = lastEditComment;
            Last_Edit_At = lastEditAt;
        }

        public string Process_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public int Ent_Id { get; set; } = 0;

        public string Input_Oper_Id { get; set; } = string.Empty;

        public int Input_Ent_Id { get; set; } = 0;

        public double Input_Percent { get; set; } = 1;

        public string? Last_Edit_Comment { get; set; } = null;

        public string? Last_Edit_By { get; set; } = null;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public long Mod_Id { get; set; } = 0;

        public int Row_Id { get; set; } = 0;
    }
}
